package com.example.demo.dao;

import com.example.demo.model.ArticleInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lishuo
 * Date: 2023-09-09
 * Time: 23:08
 */
@Mapper
public interface ArticleMapper {
//    @Select("select articleinfo.*,userinfo.username as author from userinfo,articleinfo where articleinfo.uid=userinfo.id")
    List<ArticleInfo> getAllArticle();

}
